package cn.ainit.yz.clinStore;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ainit.yz.clinStore.entity.ClinStock;
import cn.ainit.yz.clinStore.entity.ClinStockItem;
@Service
public class ClinStockServiceImpl implements ClinStockService {
	
	private ClinStockDao clinStockDao;
	@Resource
	public void setClinStockDao(ClinStockDao clinStockDao) {
		this.clinStockDao = clinStockDao;
	}
	
	@Override
	public boolean saveClinStock(ClinStock clinStock,
			List<ClinStockItem> clinStockItems) throws Exception {
		return this.clinStockDao.saveClinStock(clinStock, clinStockItems);
	}

	@Override
	public boolean updClinStock(ClinStock clinStock,
			List<ClinStockItem> clinStockItems) throws Exception {
		return this.clinStockDao.updClinStock(clinStock, clinStockItems);
	}

}
